using UnityEngine;
using System.Collections;

public class Draw : MonoBehaviour {

	// Render a line from the center of the screen to the mouse position
	float width = 1.0f;
	Color color = Color.black;
 
	void OnGUI () 
	{
	    Vector2 pointA = new Vector2(Screen.width/2, Screen.height/2);
	    Vector2 pointB = Event.current.mousePosition;
	    Drawing.DrawLine(pointA, pointB, color, width);
	}
}
